package com.itboye.sunsun.beans;

import java.util.List;
import java.util.Map;

import android.os.Parcel;
import android.os.Parcelable;

public class OrderBean {

	Map<String, DetailBean> list;

	@Override
	public String toString() {
		return "TestBean [list=" + list + "]";
	}

	public Map<String, DetailBean> getList() {
		return list;
	}

	public void setList(Map<String, DetailBean> list) {
		this.list = list;
	}

	public static class DetailBean {

		private String id;
		private String uid;
		private String orderCode;
		private String price;
		private String postPrice;
		private String note;
		private String status;
		private String payStatus;
		private String orderStatus;
		private String csStatus;
		public String getCsStatus() {
			return csStatus;
		}

		public void setCsStatus(String csStatus) {
			this.csStatus = csStatus;
		}

		private String createtime;
		private String updatetime;
		private String statusNote;
		private String commentStatus;
		private String from;
		private String idcode;
		private String discountMoney;

		private String storeid;
		private String taxAmount;
		private String goodsAmount;
		private String payType;
		private String payCode;
		List<InnerDetailBean> _items;

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getUid() {
			return uid;
		}

		public void setUid(String uid) {
			this.uid = uid;
		}

		public String getOrderCode() {
			return orderCode;
		}

		public void setOrderCode(String orderCode) {
			this.orderCode = orderCode;
		}

		public String getPrice() {
			return price;
		}

		public void setPrice(String price) {
			this.price = price;
		}

		public String getPostPrice() {
			return postPrice;
		}

		public void setPostPrice(String postPrice) {
			this.postPrice = postPrice;
		}

		public String getNote() {
			return note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public String getPayStatus() {
			return payStatus;
		}

		public void setPayStatus(String payStatus) {
			this.payStatus = payStatus;
		}

		public String getOrderStatus() {
			return orderStatus;
		}

		public void setOrderStatus(String orderStatus) {
			this.orderStatus = orderStatus;
		}

		public String getCreatetime() {
			return createtime;
		}

		public void setCreatetime(String createtime) {
			this.createtime = createtime;
		}

		public String getUpdatetime() {
			return updatetime;
		}

		public void setUpdatetime(String updatetime) {
			this.updatetime = updatetime;
		}

		public String getStatusNote() {
			return statusNote;
		}

		public void setStatusNote(String statusNote) {
			this.statusNote = statusNote;
		}

		public String getCommentStatus() {
			return commentStatus;
		}

		public void setCommentStatus(String commentStatus) {
			this.commentStatus = commentStatus;
		}

		public String getFrom() {
			return from;
		}

		public void setFrom(String from) {
			this.from = from;
		}

		public String getIdcode() {
			return idcode;
		}

		public void setIdcode(String idcode) {
			this.idcode = idcode;
		}

		public String getDiscountMoney() {
			return discountMoney;
		}

		public void setDiscountMoney(String discountMoney) {
			this.discountMoney = discountMoney;
		}

		public String getStoreid() {
			return storeid;
		}

		public void setStoreid(String storeid) {
			this.storeid = storeid;
		}

		public String getTaxAmount() {
			return taxAmount;
		}

		public void setTaxAmount(String taxAmount) {
			this.taxAmount = taxAmount;
		}

		public String getGoodsAmount() {
			return goodsAmount;
		}

		public void setGoodsAmount(String goodsAmount) {
			this.goodsAmount = goodsAmount;
		}

		public String getPayType() {
			return payType;
		}

		public void setPayType(String payType) {
			this.payType = payType;
		}

		public String getPayCode() {
			return payCode;
		}

		public void setPayCode(String payCode) {
			this.payCode = payCode;
		}

		public List<InnerDetailBean> get_items() {
			return _items;
		}

		public void set_items(List<InnerDetailBean> _items) {
			this._items = _items;
		}
		//

		//
	}

	public static class InnerDetailBean implements Parcelable {
		private String id;
		private String hasSku;

		private String name;
		private String price;
		private String oriPrice;
		private String discountRadio;
		private String postPrice;
		private String skuPd;

		private String skuDesc;
		private String count;
		private String orderCode;
		private String createtime;
		private String pId;
		private String dtTariffCode;

		private String dtGoodsUnit;
		private String dtOriginCountry;
		private String weight;
		private String taxrate;
		private String imgUrl;

		private int viewType;
		private String allprice;
		private String state;
		
		public String getState() {
			return state;
		}
		public void setState(String state) {
			this.state = state;
		}
		public InnerDetailBean() {
		}
		public InnerDetailBean(Parcel source) {
			id = source.readString();
			hasSku = source.readString();
			name = source.readString();
			price = source.readString();
			oriPrice = source.readString();
			discountRadio = source.readString();
			postPrice = source.readString();
			skuPd = source.readString();
			skuDesc = source.readString();
			count = source.readString();
			orderCode = source.readString();
			createtime = source.readString();
			pId = source.readString();
			dtTariffCode = source.readString();
			dtGoodsUnit = source.readString();
			dtOriginCountry = source.readString();
			weight = source.readString();
			taxrate = source.readString();

			imgUrl = source.readString();
			viewType = source.readInt();
			allprice=source.readString();
			state=source.readString();
		}

		/**
		 * 获取adapter中view类型
		 * 
		 * @return
		 */
		public int getViewType() {
			return viewType;
		}

		public void setViewType(int viewType) {
			this.viewType = viewType;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getHasSku() {
			return hasSku;
		}

		public void setHasSku(String hasSku) {
			this.hasSku = hasSku;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getPrice() {
			return price;
		}

		public void setPrice(String price) {
			this.price = price;
		}

		public String getOriPrice() {
			return oriPrice;
		}

		public void setOriPrice(String oriPrice) {
			this.oriPrice = oriPrice;
		}

		public String getDiscountRadio() {
			return discountRadio;
		}

		public void setDiscountRadio(String discountRadio) {
			this.discountRadio = discountRadio;
		}

		public String getPostPrice() {
			return postPrice;
		}

		public void setPostPrice(String postPrice) {
			this.postPrice = postPrice;
		}

		public String getSkuPd() {
			return skuPd;
		}

		public void setSkuPd(String skuPd) {
			this.skuPd = skuPd;
		}

		public String getSkuDesc() {
			return skuDesc;
		}

		public void setSkuDesc(String skuDesc) {
			this.skuDesc = skuDesc;
		}

		public String getCount() {
			return count;
		}

		public void setCount(String count) {
			this.count = count;
		}

		public String getOrderCode() {
			return orderCode;
		}

		public void setOrderCode(String orderCode) {
			this.orderCode = orderCode;
		}

		public String getCreatetime() {
			return createtime;
		}

		public void setCreatetime(String createtime) {
			this.createtime = createtime;
		}

		public String getpId() {
			return pId;
		}

		public void setpId(String pId) {
			this.pId = pId;
		}

		public String getDtTariffCode() {
			return dtTariffCode;
		}

		public void setDtTariffCode(String dtTariffCode) {
			this.dtTariffCode = dtTariffCode;
		}

		public String getDtGoodsUnit() {
			return dtGoodsUnit;
		}

		public void setDtGoodsUnit(String dtGoodsUnit) {
			this.dtGoodsUnit = dtGoodsUnit;
		}

		public String getDtOriginCountry() {
			return dtOriginCountry;
		}

		public void setDtOriginCountry(String dtOriginCountry) {
			this.dtOriginCountry = dtOriginCountry;
		}

		public String getWeight() {
			return weight;
		}

		public void setWeight(String weight) {
			this.weight = weight;
		}

		public String getTaxrate() {
			return taxrate;
		}

		public void setTaxrate(String taxrate) {
			this.taxrate = taxrate;
		}

		public String getImgUrl() {
			return imgUrl;
		}

		public void setImgUrl(String imgUrl) {
			this.imgUrl = imgUrl;
		}

		public String getAllprice() {
			return allprice;
		}
		public void setAllprice(String allprice) {
			this.allprice = allprice;
		}

		@Override
		public String toString() {
			return "InnerDetailBean [id=" + id + ", hasSku=" + hasSku + ", name=" + name + ", price=" + price
					+ ", oriPrice=" + oriPrice + ", discountRadio=" + discountRadio + ", postPrice=" + postPrice
					+ ", skuPd=" + skuPd + ", skuDesc=" + skuDesc + ", count=" + count + ", orderCode=" + orderCode
					+ ", createtime=" + createtime + ", pId=" + pId + ", dtTariffCode=" + dtTariffCode
					+ ", dtGoodsUnit=" + dtGoodsUnit + ", dtOriginCountry=" + dtOriginCountry + ", weight=" + weight
					+ ", taxrate=" + taxrate + ", imgUrl=" + imgUrl + "]";
		}

		@Override
		public int describeContents() {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public void writeToParcel(Parcel dest, int flags) {
			dest.writeString(id);
			dest.writeString(hasSku);
			dest.writeString(name);
			dest.writeString(price);
			dest.writeString(oriPrice);
			dest.writeString(discountRadio);
			dest.writeString(postPrice);
			dest.writeString(skuPd);
			dest.writeString(skuDesc);
			dest.writeString(count);
			dest.writeString(orderCode);
			dest.writeString(createtime);
			dest.writeString(pId);
			dest.writeString(dtTariffCode);
			dest.writeString(dtGoodsUnit);
			dest.writeString(dtOriginCountry);
			dest.writeString(weight);
			dest.writeString(taxrate);
			dest.writeString(imgUrl);
			dest.writeInt(viewType);
			dest.writeString(allprice);
			dest.writeString(state);

		}

		public static final Parcelable.Creator<InnerDetailBean> CREATOR = new Creator<InnerDetailBean>() {

			@Override
			public InnerDetailBean createFromParcel(Parcel source) {
				// TODO Auto-generated method stub
				return new InnerDetailBean(source);
			}

			@Override
			public InnerDetailBean[] newArray(int size) {
				// TODO Auto-generated method stub
				return new InnerDetailBean[size];
			}

		};

	}
}
